-- GENERATED SPELL FOR [King Llane] --


function spell0_21684(pUnit, Event) --@Heroism,n/a--
pUnit:FullCastSpellOnTarget(37471,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21684', 10000, 1)
end

function spell1_21684(pUnit, Event) --@Move,n/a--
pUnit:FullCastSpellOnTarget(30012,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21684', 636, 1)
end

function spell2_21684(pUnit, Event) --@Move,n/a--
pUnit:FullCastSpellOnTarget(37153,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21684', 0, 1)
end

function spell3_21684(pUnit, Event) --@Sweep,n/a--
pUnit:FullCastSpellOnTarget(37474,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21684', 0, 1)
end

function Sorts_21684(pUnit, Event)
local choix_sorts_21684 = math.random(0, 3)
if choix_sorts_21684 == 0 then
pUnit:RegisterEvent('spell0_21684', 1, 1)
end
if choix_sorts_21684 == 1 then
pUnit:RegisterEvent('spell1_21684', 1, 1)
end
if choix_sorts_21684 == 2 then
pUnit:RegisterEvent('spell2_21684', 1, 1)
end
if choix_sorts_21684 == 3 then
pUnit:RegisterEvent('spell3_21684', 1, 1)
end
end

function mob21684_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21684', math.random(1500, 3000), 1)
end

function mob21684_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21684_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21684_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21684, 1, 'mob21684_Action')
RegisterUnitEvent(21684, 2, 'mob21684_Leave')
RegisterUnitEvent(21684, 3, 'mob21684_Kill')
RegisterUnitEvent(21684, 4, 'mob21684_Die')
